package com.joinway.framework.data.jdbc.bean;

import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

import com.joinway.framework.bean.domain.constant.SqlConstants;

@ApiObject(name = "ConditionItem", description = "排序字段")
public class ConditionItem extends CriteriaItem {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiObjectField(description="查询条件，默认为=",required=false,format="=,>=,<=,in,like,between") 
	private String operator = SqlConstants.Operator.Equals;
	
	@ApiObjectField(description="查询条件连接符，默认为and",required=false,format="between,in") 
	private String condition = SqlConstants.Condition.And;

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}
}
